package de.velvettear.squirrel.kernel;

import de.velvettear.squirrel.util.FileHelper;

public class File {

	public String m_sName;
	public String m_sPath;
	public String m_sFullPath;
	public java.io.File m_cFile;	
	public String m_sExtension;
	public long m_nSize;
	
	public File(String m_sPath) {
		this.m_cFile = new java.io.File(m_sPath);		
		this.m_sName = m_cFile.getName();
		this.m_sPath = m_sPath.replace(this.m_sName, "");
		this.m_sFullPath = this.m_sPath + this.m_sName;
		this.m_sExtension = FileHelper.getExtension(this);
		this.m_nSize = FileHelper.getSize(this);
	}
	
	public boolean exists() {
		return this.m_cFile.exists();
	}
	
	public void delete() {
		this.m_cFile.delete();
	}
	
}
